package daos;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.hibernate.Criteria;

import utils.DaoGenericoImpl;
import utils.HibernateUtility;

import models.Cliente;

public class ClienteDaoImpl extends DaoGenericoImpl < Cliente , Long > implements ClienteDao {

    @Override
    public List consultar() {
        List lista = new ArrayList();
        Criteria crit = HibernateUtility.getSession().createCriteria(Cliente.class);

        lista = (List) crit.list();
        return lista;
    }

	@Override
	public Class<Cliente> getObjectClass() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Cliente save(Cliente objeto) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(Cliente objeto) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteItem(Cliente objeto) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Cliente> list() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cliente> listCriterio(String subClazz,
			Map<String, Object> filtrosConsulta, int tipoConsulta) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Cliente getById(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Cliente getById(Serializable id, boolean lock) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cliente> consultaHQL(String consulta) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void cancel() {
		// TODO Auto-generated method stub
		
	}
}
